import axios from 'axios'
import { Button } from 'antd'
import React from 'react'
import NewsPublish from '../../components/publish-manage/NewsPublish'
import usePublish from '../../components/publish-manage/uesPublish'
export default function Unpublished() {
   //1 ===未发布
  const {dataSource,handlePublish} = usePublish(1)
  return (
    <div>
      <NewsPublish dataSource={dataSource} button={(id)=><Button type='primary' onClick={()=>handlePublish(id)}>发布</Button>}></NewsPublish>
    </div>
  )
}
